//
//  MGCHomeDefine.pch
//  IOS-Screen
//
//  Created by season02 on 5/3/16.
//  Copyright © 2016 alex.chih. All rights reserved.
//
#import "MGCScreenCommon.h"
#import "SDVersion.h"
#import "MGCScreenCommon.h"

#ifndef MGCHomeDefine_pch
#define MGCHomeDefine_pch

#define MGCCheckNil(x) ( [x isEqualToString:@""] || x == nil ? @"－" : x )

#define MGCHomeHeadListKey     @"MGCHomeHeadListKey"
#define MGCHomeNewsListKey     @"MGCHomeNewsListKey"
#define MGCHomeContentListKey  @"MGCHomeContentListKey" //content is news

//#pragma mark 新闻频道
//@property (nonatomic,strong) NSString* channelName;
//#pragma mark 视频时长
//@property (nonatomic,strong) NSString* programTimeStr;
//#pragma 翻译标题
//@property (nonatomic,strong) NSString* translateTitle;
//#pragma 国家
//@property (nonatomic,strong) NSString* areaName;


#define MGCHomeListEntityKeyId               @"MGCHomeListEntityKeyId"
#define MGCHomeListEntityKeypicMinPath       @"MGCHomeListEntityKeypicMinPath"
#define MGCHomeListEntityKeypicNormalPath    @"MGCHomeListEntityKeypicNormalPath"
#define MGCHomeListEntityKeyType             @"MGCHomeListEntityKeyType"
#define MGCHomeListEntityKeyTitle            @"MGCHomeListEntityKeyTitle"
#define MGCHomeListEntityKeyVideoTypesName   @"MGCHomeListEntityKeyVideoTypesName"
#define MGCHomeListEntityKeySubcribeTime     @"MGCHomeListEntityKeySubcribeTime"
#define MGCHomeListEntityKeyAuthorName       @"MGCHomeListEntityKeyAuthorName"
#define MGCHomeListEntityKeySubject          @"MGCHomeListEntityKeySubject"

#define MGCHomeListEntityKeyChannelName      @"MGCHomeListEntityKeyChannelName"
#define MGCHomeListEntityKeyProgramTimeStr   @"MGCHomeListEntityKeyProgramTimeStr"
#define MGCHomeListEntityKeyTranslateTitle   @"MGCHomeListEntityKeyTranslateTitle"
#define MGCHomeListEntityKeyAreaName         @"MGCHomeListEntityKeyAreaName"

#define MGCHomeListEntityKeyAreaNameEn       @"MGCHomeListEntityKeyAreaNameEn"
#define MGCHomeListEntityKeyVideoTypesNameEn @"MGCHomeListEntityKeyVideoTypesNameEn"

//#define MGCHomeTableCellDefaultHeight 110
#define MGCHomeTableCellHeadHeight ([MGCScreenCommon screenWidth] * 6 / 10)
#define MGCHomeTableCellDefaultHeight ([MGCScreenCommon screenWidth] * 7 / 25)
#define MGCHomeTableCellHeadFontSpace (MGCHomeTableCellHeadHeight * 0.13)
#define MGCHomeLeftSpace ([MGCScreenCommon screenWidth] * 0.04)
#define MGCHomeCellTopSpace ([MGCScreenCommon screenWidth] * 0.024)
#define MGCHomeDefaultImageWidth ([MGCScreenCommon screenWidth] * 0.38)

#define MGCHomeVideoImageHeight (MGCHomeDefaultImageWidth * 0.564)
#define MGCHomeNewsImageHeight (MGCHomeDefaultImageWidth * 0.62)

#define MGCHomeVideoCellTopSpace ((MGCHomeTableCellDefaultHeight - MGCHomeVideoImageHeight) / 2)

#define MGCHomeHeadTitleFontSize 16
#define MGCHomeHeadTranslateTitleFontSize 12

#define MGCHomeTopSpace ([MGCScreenCommon screenWidth] * 0.012)
#define MGCHomeBottomSpace ([MGCScreenCommon screenWidth] * 0.018)
#define MGCHomeSubjectBottomSpace ([MGCScreenCommon screenWidth] * 0.018)

//#define MGCHomeItemSubscriptFontSize 12
#define MGCHomeItemDetailFontSize 12

#define MGCRegisterFontSize ([SDVersion deviceSize] > Screen4inch ? 14 : 13)

#define MGCHomeItemSubscriptFontSize ([SDVersion deviceSize] > Screen4inch ? 12 : 10)
#define MGCHomeItemTitleFontSize ([SDVersion deviceSize] > Screen4inch ? 14 : 12)
#define MGCHomeItemTitleTopSpace ([MGCScreenCommon screenWidth] * 0.00002)

#define MGCHomeDefaultInforFontSize 11

#define MGCHomeDefaultSubjectFontColor MGCRGBColor(80,80,80)

//#define SeasonRGBColor(r, g, b) [UIColor colorWithRed:(r) green:(g) blue:(b) alpha:1.0]
//#define MGCHomeRecycleImageIndicatorCurrentColor SeasonRGBColor(157,200,21)
#define MGCHomeRecycleImageIndicatorCurrentColor [MGCScreenCommon getColor : @"9dc815"]
#define MGCHomeRecycleImageIndicatorBackgroundColor [MGCScreenCommon getColor : @"4b4b4b"]
#define MGCHomeRecycleImageIndicatorColor MGCRGBColor(220,220,220)

#define MGCTitleBarBackgroundColor [MGCScreenCommon getColor : @"434343"]

#endif /* MGCHomeDefine_pch */
